<!-- dashboard -->
<template>
  <div class="dashboard-container">
    <component :is="currentRole" />
  </div>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import AdminDashboard from "./admin/index.vue";

@Component({
  name: "Dashboard",
  components: {
    AdminDashboard,
  },
})
export default class extends Vue {
  private currentRole = "admin-dashboard";

  created() {
    // if (!this.roles.includes('admin')) {
    //   this.currentRole = 'editor-dashboard'
    // }
  }
}
</script>
